home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / misc / RCS / Rdist,v < prev    next >
Encoding:
Text File  |  1989-09-15  |  3.0 KB  |  171 lines

  1. head     1.8;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    douglis:1.8; strict;
  6. comment  @# @;
  7.  
  8.  
  9. 1.8
  10. date     89.01.16.14.53.56;  author ouster;  state Exp;
  11. branches ;
  12. next     1.7;
  13.  
  14. 1.7
  15. date     88.12.19.10.19.53;  author douglis;  state Exp;
  16. branches ;
  17. next     1.6;
  18.  
  19. 1.6
  20. date     88.12.16.09.53.21;  author brent;  state Exp;
  21. branches ;
  22. next     1.5;
  23.  
  24. 1.5
  25. date     88.10.30.15.06.02;  author ouster;  state Exp;
  26. branches ;
  27. next     1.4;
  28.  
  29. 1.4
  30. date     88.09.16.14.40.28;  author douglis;  state Exp;
  31. branches ;
  32. next     1.3;
  33.  
  34. 1.3
  35. date     88.09.14.10.41.26;  author douglis;  state Exp;
  36. branches ;
  37. next     1.2;
  38.  
  39. 1.2
  40. date     88.08.08.11.04.59;  author douglis;  state Exp;
  41. branches ;
  42. next     1.1;
  43.  
  44. 1.1
  45. date     88.07.31.16.22.34;  author douglis;  state Exp;
  46. branches ;
  47. next     ;
  48.  
  49.  
  50. desc
  51. @script to invoke rdist for various directories to back files up over to
  52. unix.
  53. @
  54.  
  55.  
  56. 1.8
  57. log
  58. @Use /sprite3 instead of /sprite on UNIX side, eliminate things
  59. that don't need to be rdisted anymore.
  60. @
  61. text
  62. @#! /sprite/cmds/csh -fb
  63. # This file rdists the entire Sprite file system and is invoked
  64. # nightly by crontab.
  65. set path = (/sprite/cmds)
  66.  
  67. echo -n "Rdist started: "; date
  68. set distfile=(/sprite/lib/misc/distfile.ALL)
  69. # Address to send error messages to
  70. set admin=douglis
  71. # Do each target individually, and do "misc" last since it's the one
  72. # that triggers the "expected control record" snafu.
  73. set targets=(src users kerneltest rootdirs mh newatt \
  74.              newcmds emacs misc2 misc)
  75.  
  76. rdist -n -f $distfile $targets > /dev/null
  77. if ($status != 0) then
  78.     echo "Error in $distfile."
  79.     echo "Error in $distfile." | Mail -s "distfile problem" $admin
  80. else
  81. # Rdist each target individually to get around a bug that is causing
  82. # rdist to die.  Maybe.
  83.     foreach target ($targets)
  84.         echo "rdist $target"
  85.         rdist -f $distfile $target | grep -v "updated" | \
  86.                                      grep -v "Warning: remote mode"
  87.     end
  88. endif    
  89. echo -n "Rdist completed: "; date
  90.  
  91. @
  92.  
  93.  
  94. 1.7
  95. log
  96. @reinstated mail message on error
  97. @
  98. text
  99. @d12 1
  100. a12 1
  101. set targets=(src users userstounix kerneltest local rootdirs mh newatt \
  102. @
  103.  
  104.  
  105. 1.6
  106. log
  107. @Nuked the 'test' target so /t2/test isn't being backed up.
  108. These are old testing programs anyway.
  109. @
  110. text
  111. @d18 1
  112. a18 1
  113. #    echo "Error in $distfile." | Mail -s "distfile problem" $admin
  114. @
  115.  
  116.  
  117. 1.5
  118. log
  119. @Removed att stuff from nightly rdists.
  120. @
  121. text
  122. @d13 1
  123. a13 1
  124.              newcmds emacs misc2 test misc)
  125. @
  126.  
  127.  
  128. 1.4
  129. log
  130. @added targets.
  131. @
  132. text
  133. @d12 1
  134. a12 1
  135. set targets=(src users userstounix kerneltest att local rootdirs mh newatt \
  136. @
  137.  
  138.  
  139. 1.3
  140. log
  141. @added "test" target
  142. @
  143. text
  144. @d12 2
  145. a13 1
  146. set targets=(src users kerneltest att local rootdirs mh newatt newcmds emacs misc2 test misc)
  147. @
  148.  
  149.  
  150. 1.2
  151. log
  152. @split misc into misc2 and misc, to get even more things to
  153. actually get rdisted before the bizarre bug hits
  154. @
  155. text
  156. @d12 1
  157. a12 1
  158. set targets=(src users kerneltest att local rootdirs mh newatt newcmds emacs misc2 misc)
  159. @
  160.  
  161.  
  162. 1.1
  163. log
  164. @Initial revision
  165. @
  166. text
  167. @d12 1
  168. a12 1
  169. set targets=(src users kerneltest att local rootdirs mh newatt newcmds emacs misc)
  170. @
  171.